package com.digest.impl;

import com.digest.Digest;
import org.apache.commons.codec.digest.DigestUtils;

public class ShaDigest implements Digest {
    public String digest(String raw){
        System.out.println("使用sha算法生成摘要");
        return DigestUtils.sha256Hex(raw);
    }
}
